<?php

namespace App\Http\Resources;

use App\Traits\BaseResource;
use Illuminate\Http\Resources\Json\Resource;

class Carousel extends Resource {
	use BaseResource;

	public function toEdit($request) {
		return $this->toDefault($request);
	}

	public function toDefault($request) {
		return $this->filterFields([
			'id' => $this->id,
			'title' => $this->title,
			'content' => $this->content,
			'image' => $this->image,
			'status' => $this->status,
		]);
	}
}
